package com.itheima.service;

import com.itheima.dao.GoodsDao;
import com.itheima.domain.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsService {

    @Autowired
    private GoodsDao goodsDao;

    public Goods findById(int id){
        return goodsDao.findById(id);
    }
}
